package com.activity.bean;

import org.apache.commons.lang3.StringUtils;

import java.util.ArrayList;

public class CategoryBean {

    /**
     * workscategoryname : 专辑二
     * workscategoryuserid : 1
     * workscategoryid : 2
     */
    private String workscategoryparentid;
    public   boolean isSelected;

    public String getWorkscategoryparentid() {

        if(StringUtils.isEmpty(workscategoryparentid) )
            return "0";
        return workscategoryparentid;
    }
    private ArrayList<CategoryBean> sublist;

    public ArrayList<CategoryBean> getSublist() {
        if(sublist==null)
        {
            sublist =  new ArrayList<>();
        }

        return sublist;
    }

    public void setSublist(ArrayList<CategoryBean> sublist) {
        this.sublist = sublist;
    }

    public void setWorkscategoryparentid(String workscategoryparentid) {
        this.workscategoryparentid = workscategoryparentid;
    }

    private String workscategoryname;
    private String workscategoryuserid;
    private String workscategoryid;

    public String getWorkscategoryname() {
        return workscategoryname;
    }

    public void setWorkscategoryname(String workscategoryname) {
        this.workscategoryname = workscategoryname;
    }

    public String getWorkscategoryuserid() {
        return workscategoryuserid;
    }

    public void setWorkscategoryuserid(String workscategoryuserid) {
        this.workscategoryuserid = workscategoryuserid;
    }

    public String getWorkscategoryid() {
        return workscategoryid;
    }

    public void setWorkscategoryid(String workscategoryid) {
        this.workscategoryid = workscategoryid;
    }
}
